@echo off
echo 启动HJ212服务测试脚本
echo.

echo 1. 启动Spring Boot应用...
echo 请确保应用已启动并监听在端口10001
echo.

echo 2. 测试服务状态...
curl -X GET "http://localhost:10001/electroplating/hj212/status"
echo.
echo.

echo 3. 测试发送标准数据包...
curl -X POST "http://localhost:10001/electroplating/hj212/test/standard"
echo.
echo.

echo 4. 测试发送实时数据...
curl -X POST "http://localhost:10001/electroplating/hj212/test/realtime?pollutantCode=w01001&value=25.5"
echo.
echo.

echo 5. 测试发送自定义数据包...
curl -X POST "http://localhost:10001/electroplating/hj212/test/send" -d "testData=##0000ST=91;CN=9011;PW=123456;MN=00000000000000000000;Flag=5;CP=&&RtdInterval=30&&\r\n"
echo.
echo.

echo 测试完成！
pause 